package team.pwy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import team.pwy.mapper.ImgMapper;
import team.pwy.mapper.PerformerMapper;
import team.pwy.pojo.entity.Img;
import team.pwy.pojo.entity.Performer;

import java.util.List;

@Service
@Transactional
public class ImgServiceImpl implements ImgService {
    @Autowired
    private ImgMapper imgMapper;
    @Autowired
    private PerformerMapper performerMapper;

    @Override
    public List<Img> findByMovieId(Integer movieId) {
        return imgMapper.findByMovieId(movieId);
    }
    @Override
    public List<Performer> findByperformer(Integer movieId){
        return performerMapper.findByperformer(movieId);
    }

}
